<table border="1">
    <tr>
        <td>id</td>
        <td>标题</td>
        <td>日期</td>
    </tr>
    <?php foreach($news as $n):?>
		<tr>
			<td><?php echo $n['id'];?></td>
			<td><a href="show.php?id=<?php echo $n['id'];?>">
                <?php echo $n['title'];?>
                </a>
            </td>
            <td><?php echo $n['addtime'];?>　</td>
            
		</tr>
	<?php endforeach;?>
</table>